<template>
    <div class="loading">
      {{ tip }}
    </div>
</template>

<script>
import { defineComponent } from 'vue'
export default defineComponent({
    name: "loading",
    props: {
        tip: {
            type: String,
            default: '加载中...'
        }
    }
})
</script>

<style lang="scss" scoped>
.loading {
    position: fixed;
    left: 0;
    top: 40px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 8px 10px;
    z-index: 1000;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}
</style>
  